<title>
	DouPHP 管理中心 - 编辑产品
</title>

<script type="text/javascript" src="<?php echo __PUBLIC__?>Admin/js/jquery.autotextarea.js"></script>

<div id="dcMain">
	<!-- 当前位置 -->
	<div id="urHere">DouPHP 管理中心<b>></b><strong>编辑产品</strong> </div>
	<div class="mainBox" style="height:auto!important;height:550px;min-height:550px;">
		<h3><a href="index.php?m=admin&c=product&a=index" class="actionBtn">产品列表</a>编辑产品</h3>
		<form action="index.php?m=admin&c=product&a=edit" method="post" enctype="multipart/form-data">
			<table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
				<tr>
					<td width="90" align="right">产品名称</td>
					<td>
						<input type="text" name="title" value="<?php echo $this->Product['pro_name'];?>" size="80" class="inpMain" />
					</td>
				</tr>
				<tr>
					<td align="right">产品分类</td>
					<td>
						<select name="cat_id">
							<?php foreach($this->cat as $val):?>
							<?php if($val['id'] == $this->Product['pro_class']){?>
							<option value="<?php echo $val['id']?>" selected="selected">
								<?php echo $val['name'];?>
							</option>
							<?php }else{?>
							<option value="<?php echo $val['id']?>">
								<?php echo $val['name'];?>
							</option>
							<?php }?>
							<?php endForeach;?>

						</select>
					</td>
				</tr>

			     <tr>
			       <td align="right">产品图片</td>
			       <td>
			        <input type="file" name="image" size="38" class="inpFlie" />
			        <?php if(!empty($this->Product['pro_src'])){?>
			        	<img src="<?php echo $this->Product['pro_src'];?>"style="width: 100px;height: 150px;vertical-align: middle;">
			        <?php }?>
			       </td>
			      </tr>

				<tr>
					<td></td>
					<td>
						 <input type="hidden" name="id" value="<?php echo $this->Product['id'];?>">
						<input name="submit" class="btn" type="submit" value="提交" />
					</td>
				</tr>
			</table>
		</form>
	</div>
</div>